﻿<Application 
    x:Class="Coding4Fun.WheresMyCar.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
	xmlns:mpc="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps">

    <!--Application Resources-->
    <Application.Resources>
		<ControlTemplate x:Key="CarPushpinTemplate" TargetType="mpc:Pushpin">
			<Image Source="/images/carPushpin.png" Stretch="None" Margin="-24, 0, 0, -24" />
		</ControlTemplate>
        <ControlTemplate x:Key="PersonPushpinTemplate" TargetType="mpc:Pushpin">
            <Image Source="/images/mePushpin.png" Stretch="None" Margin="-24, 0, 0, -24 " />
        </ControlTemplate>
        <ControlTemplate x:Key="EllipsePushpinTemplate" TargetType="mpc:Pushpin">
            <Grid Width="34" Height="34">
                <Ellipse Stroke="White" StrokeThickness="2" />
                <Ellipse Stroke="Black" StrokeThickness="2" Margin="2" />
            </Grid>
        </ControlTemplate>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>
